//
//  CZQLoginManager.h
//  LoveBeer
//
//  Created by 崔正强 on 17/4/27.
//  Copyright © 2017年 崔正强. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "LoveBeer.pch"

#define _LoginMgr ([CZQLoginManager sharedManager])

#define KisLogin @"KisLogin"
#define KPhoneNum @"KPhoneNum"

@interface CZQLoginManager : NSObject

//登录状态
@property (assign, nonatomic) BOOL isLogin;

//电话号码
@property (copy, nonatomic) NSString *phoneNum;

@property (copy,nonatomic)  NSString* addresLabel;

/**
 单例

 @return 返回登录管理单例
 */
+ (instancetype)sharedManager;


/**
 对验证消息发送进行包装

 @param phoneNum 手机号字符串
 @param verify 验证码字符串
 @param result 验证结果
 */
- (void)logiWithPhone:(NSString *)phoneNum Verify:(NSString *)verify finished:(void(^)(SMSSDKUserInfo *userInfo, NSError *error))result;


/**
 获取验证字符串

 @param phoneNum 电话号码
 @param result 获取验证结果
 */
- (void)getVerifyWithPhoneNum:(NSString *)phoneNum result:(void(^)(NSError *error))result;

@end
